package jgl.vajra.operator.part.login.contract;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.operator.databinding.ActivityBindMachineBossBinding;
import jgl.vajra.operator.widget.bean.BaseRequestData;
import jgl.vajra.operator.widget.mvvm.model.BaseModel;
import jgl.vajra.operator.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.operator.widget.mvvm.viewmodel.BaseViewModel;

public class BindMachineBossContract {
    public abstract static class Model extends BaseModel {

        public abstract Observable<BaseRequestData<String>> getVerifyCode(Map<String, Object> map);

        public abstract Observable<Object> bindMachineData(Map<String, Object> map);
    }

    public interface View extends BaseMVVMView {

        void onVerifyCode();

        void onDetermine();

        void returnBindMachineData();

        void returnVerifyCodeData(int code);
    }

    public abstract static class ViewModel extends BaseViewModel<View, ActivityBindMachineBossBinding, Model> {

        public abstract void getVerifyCode(Map<String, Object> map);

        public abstract void bindMachineData(Map<String, Object> map);
    }
}
